/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import dao.DimensionDataDao;
import dao.DimensionMediaDao;
import java.sql.Connection;
import java.util.Vector;
import pojo.DimensionData;
import pojo.DimensionMedia;

/**
 *
 * @author A7med Kotb
 */
public class SearchISBNUPCModel {
    
    private Connection con;
    public SearchISBNUPCModel(Connection con){
        this.con=con;
    }
    
    //method to get ISBN from Dimension Table Data
    public Vector<DimensionData> getISBN(long isbn){
        DimensionDataDao dddao=new DimensionDataDao(con);
        return dddao.getByISBN(isbn);
    }
    
    //method to get UPC from Dimension Table Media
    public Vector<DimensionMedia> getUPC(String upc){
        DimensionMediaDao dmdao=new DimensionMediaDao(con);
        return dmdao.getByUPC(upc);
    }
}
